.class public Lcom/zuimeia/ui/flipimageview/FlipImageView;
.super Landroid/widget/ImageView;
.source "FlipImageView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/animation/Animation$AnimationListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;,
        Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;
    }
.end annotation


# static fields
.field private static final FLAG_ROTATION_X:I = 0x1

.field private static final FLAG_ROTATION_Y:I = 0x2

.field private static final FLAG_ROTATION_Z:I = 0x4

.field private static final fDefaultInterpolator:Landroid/view/animation/Interpolator;

.field private static sDefaultAnimated:Z

.field private static sDefaultDuration:I

.field private static sDefaultFlipped:Z

.field private static sDefaultIsRotationReversed:Z

.field private static sDefaultRotations:I


# instance fields
.field private mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

.field private mDrawable:Landroid/graphics/drawable/Drawable;

.field private mFlippedDrawable:Landroid/graphics/drawable/Drawable;

.field private mIsDefaultAnimated:Z

.field private mIsFlipped:Z

.field private mIsFlipping:Z

.field private mIsRotationReversed:Z

.field private mIsRotationXEnabled:Z

.field private mIsRotationYEnabled:Z

.field private mIsRotationZEnabled:Z

.field private mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 30
    new-instance v0, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    sput-object v0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->fDefaultInterpolator:Landroid/view/animation/Interpolator;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 74
    invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 75
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->init(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 76
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 79
    invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 80
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->init(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 81
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 84
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 85
    invoke-direct {p0, p1, p2, p3}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->init(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 86
    return-void
.end method

.method static synthetic access$000(Lcom/zuimeia/ui/flipimageview/FlipImageView;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/flipimageview/FlipImageView;

    .prologue
    .line 22
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationReversed:Z

    return v0
.end method

.method static synthetic access$100(Lcom/zuimeia/ui/flipimageview/FlipImageView;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/flipimageview/FlipImageView;

    .prologue
    .line 22
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationXEnabled:Z

    return v0
.end method

.method static synthetic access$200(Lcom/zuimeia/ui/flipimageview/FlipImageView;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/flipimageview/FlipImageView;

    .prologue
    .line 22
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationYEnabled:Z

    return v0
.end method

.method static synthetic access$300(Lcom/zuimeia/ui/flipimageview/FlipImageView;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/flipimageview/FlipImageView;

    .prologue
    .line 22
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationZEnabled:Z

    return v0
.end method

.method private init(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 14
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    const/4 v6, 0x1

    const/4 v7, 0x0

    .line 89
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v8, Lcom/zuimeia/ui/R$integer;->default_fiv_duration:I

    invoke-virtual {v5, v8}, Landroid/content/res/Resources;->getInteger(I)I

    move-result v5

    sput v5, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultDuration:I

    .line 90
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v8, Lcom/zuimeia/ui/R$integer;->default_fiv_rotations:I

    invoke-virtual {v5, v8}, Landroid/content/res/Resources;->getInteger(I)I

    move-result v5

    sput v5, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultRotations:I

    .line 91
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v8, Lcom/zuimeia/ui/R$bool;->default_fiv_isAnimated:I

    invoke-virtual {v5, v8}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v5

    sput-boolean v5, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultAnimated:Z

    .line 92
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v8, Lcom/zuimeia/ui/R$bool;->default_fiv_isFlipped:I

    invoke-virtual {v5, v8}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v5

    sput-boolean v5, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultFlipped:Z

    .line 93
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v8, Lcom/zuimeia/ui/R$bool;->default_fiv_isRotationReversed:I

    invoke-virtual {v5, v8}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v5

    sput-boolean v5, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultIsRotationReversed:Z

    .line 95
    sget-object v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView:[I

    invoke-virtual {p1, p2, v5, p3, v7}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 96
    .local v0, "a":Landroid/content/res/TypedArray;
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_isAnimated:I

    sget-boolean v8, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultAnimated:Z

    invoke-virtual {v0, v5, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v5

    iput-boolean v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsDefaultAnimated:Z

    .line 97
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_isFlipped:I

    sget-boolean v8, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultFlipped:Z

    invoke-virtual {v0, v5, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v5

    iput-boolean v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    .line 98
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_flipDrawable:I

    invoke-virtual {v0, v5}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    iput-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    .line 99
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_flipDuration:I

    sget v8, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultDuration:I

    invoke-virtual {v0, v5, v8}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v1

    .line 100
    .local v1, "duration":I
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_flipInterpolator:I

    invoke-virtual {v0, v5, v7}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v3

    .line 101
    .local v3, "interpolatorResId":I
    if-lez v3, :cond_c9

    invoke-static {p1, v3}, Landroid/view/animation/AnimationUtils;->loadInterpolator(Landroid/content/Context;I)Landroid/view/animation/Interpolator;

    move-result-object v2

    .line 102
    .local v2, "interpolator":Landroid/view/animation/Interpolator;
    :goto_74
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_flipRotations:I

    sget v8, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultRotations:I

    invoke-virtual {v0, v5, v8}, Landroid/content/res/TypedArray;->getInteger(II)I

    move-result v4

    .line 103
    .local v4, "rotations":I
    and-int/lit8 v5, v4, 0x1

    if-eqz v5, :cond_cc

    move v5, v6

    :goto_81
    iput-boolean v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationXEnabled:Z

    .line 104
    and-int/lit8 v5, v4, 0x2

    if-eqz v5, :cond_ce

    move v5, v6

    :goto_88
    iput-boolean v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationYEnabled:Z

    .line 105
    and-int/lit8 v5, v4, 0x4

    if-eqz v5, :cond_d0

    :goto_8e
    iput-boolean v6, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationZEnabled:Z

    .line 107
    invoke-virtual {p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v5

    iput-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    .line 108
    sget v5, Lcom/zuimeia/ui/R$styleable;->FlipImageView_reverseRotation:I

    sget-boolean v6, Lcom/zuimeia/ui/flipimageview/FlipImageView;->sDefaultIsRotationReversed:Z

    invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v5

    iput-boolean v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationReversed:Z

    .line 110
    new-instance v5, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    invoke-direct {v5, p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;-><init>(Lcom/zuimeia/ui/flipimageview/FlipImageView;)V

    iput-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    .line 111
    iget-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    invoke-virtual {v5, p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 112
    iget-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    invoke-virtual {v5, v2}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 113
    iget-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    int-to-long v8, v1

    invoke-virtual {v5, v8, v9}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;->setDuration(J)V

    .line 115
    invoke-virtual {p0, p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 117
    iget-boolean v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eqz v5, :cond_d2

    iget-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    :goto_c0
    invoke-virtual {p0, v5}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 118
    iput-boolean v7, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipping:Z

    .line 120
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 121
    return-void

    .line 101
    .end local v2    # "interpolator":Landroid/view/animation/Interpolator;
    .end local v4    # "rotations":I
    :cond_c9
    sget-object v2, Lcom/zuimeia/ui/flipimageview/FlipImageView;->fDefaultInterpolator:Landroid/view/animation/Interpolator;

    goto :goto_74

    .restart local v2    # "interpolator":Landroid/view/animation/Interpolator;
    .restart local v4    # "rotations":I
    :cond_cc
    move v5, v7

    .line 103
    goto :goto_81

    :cond_ce
    move v5, v7

    .line 104
    goto :goto_88

    :cond_d0
    move v6, v7

    .line 105
    goto :goto_8e

    .line 117
    :cond_d2
    iget-object v5, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    goto :goto_c0
.end method


# virtual methods
.method public getFlipAnimation()Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;
    .registers 2

    .prologue
    .line 160
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    return-object v0
.end method

.method public init()V
    .registers 2

    .prologue
    const/4 v0, 0x0

    .line 225
    invoke-virtual {p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->clearAnimation()V

    .line 226
    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setVisibility(I)V

    .line 227
    iput-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    .line 228
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eqz v0, :cond_13

    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    :goto_f
    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 229
    return-void

    .line 228
    :cond_13
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    goto :goto_f
.end method

.method public isAnimated()Z
    .registers 2

    .prologue
    .line 188
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsDefaultAnimated:Z

    return v0
.end method

.method public isFlipped()Z
    .registers 2

    .prologue
    .line 172
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    return v0
.end method

.method public isFlipping()Z
    .registers 2

    .prologue
    .line 176
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipping:Z

    return v0
.end method

.method public isRotationReversed()Z
    .registers 2

    .prologue
    .line 180
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationReversed:Z

    return v0
.end method

.method public isRotationXEnabled()Z
    .registers 2

    .prologue
    .line 136
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationXEnabled:Z

    return v0
.end method

.method public isRotationYEnabled()Z
    .registers 2

    .prologue
    .line 144
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationYEnabled:Z

    return v0
.end method

.method public isRotationZEnabled()Z
    .registers 2

    .prologue
    .line 152
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationZEnabled:Z

    return v0
.end method

.method public onAnimationEnd(Landroid/view/animation/Animation;)V
    .registers 3
    .param p1, "animation"    # Landroid/view/animation/Animation;

    .prologue
    .line 261
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    if-eqz v0, :cond_9

    .line 262
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    invoke-interface {v0, p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;->onFlipEnd(Lcom/zuimeia/ui/flipimageview/FlipImageView;)V

    .line 264
    :cond_9
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipping:Z

    .line 265
    return-void
.end method

.method public onAnimationRepeat(Landroid/view/animation/Animation;)V
    .registers 2
    .param p1, "animation"    # Landroid/view/animation/Animation;

    .prologue
    .line 269
    return-void
.end method

.method public onAnimationStart(Landroid/view/animation/Animation;)V
    .registers 3
    .param p1, "animation"    # Landroid/view/animation/Animation;

    .prologue
    .line 253
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    if-eqz v0, :cond_9

    .line 254
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    invoke-interface {v0, p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;->onFlipStart(Lcom/zuimeia/ui/flipimageview/FlipImageView;)V

    .line 256
    :cond_9
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipping:Z

    .line 257
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 245
    invoke-virtual {p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->toggleFlip()V

    .line 246
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    if-eqz v0, :cond_c

    .line 247
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    invoke-interface {v0, p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;->onClick(Lcom/zuimeia/ui/flipimageview/FlipImageView;)V

    .line 249
    :cond_c
    return-void
.end method

.method public setAnimated(Z)V
    .registers 2
    .param p1, "animated"    # Z

    .prologue
    .line 192
    iput-boolean p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsDefaultAnimated:Z

    .line 193
    return-void
.end method

.method public setDrawable(Landroid/graphics/drawable/Drawable;)V
    .registers 3
    .param p1, "drawable"    # Landroid/graphics/drawable/Drawable;

    .prologue
    .line 130
    iput-object p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    .line 131
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-nez v0, :cond_b

    .line 132
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 133
    :cond_b
    return-void
.end method

.method public setDuration(I)V
    .registers 6
    .param p1, "duration"    # I

    .prologue
    .line 168
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    int-to-long v2, p1

    invoke-virtual {v0, v2, v3}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;->setDuration(J)V

    .line 169
    return-void
.end method

.method public setFlipped(Z)V
    .registers 3
    .param p1, "flipped"    # Z

    .prologue
    .line 196
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsDefaultAnimated:Z

    invoke-virtual {p0, p1, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setFlipped(ZZ)V

    .line 197
    return-void
.end method

.method public setFlipped(ZZ)V
    .registers 4
    .param p1, "flipped"    # Z
    .param p2, "animated"    # Z

    .prologue
    .line 200
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eq p1, v0, :cond_7

    .line 201
    invoke-virtual {p0, p2}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->toggleFlip(Z)V

    .line 203
    :cond_7
    return-void
.end method

.method public setFlippedDrawable(Landroid/graphics/drawable/Drawable;)V
    .registers 3
    .param p1, "flippedDrawable"    # Landroid/graphics/drawable/Drawable;

    .prologue
    .line 124
    iput-object p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    .line 125
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eqz v0, :cond_b

    .line 126
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 127
    :cond_b
    return-void
.end method

.method public setInVisiable()V
    .registers 2

    .prologue
    .line 232
    invoke-virtual {p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->clearAnimation()V

    .line 233
    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setVisibility(I)V

    .line 234
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    .line 235
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eqz v0, :cond_15

    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    :goto_11
    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 236
    return-void

    .line 235
    :cond_15
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    goto :goto_11
.end method

.method public setInterpolator(Landroid/view/animation/Interpolator;)V
    .registers 3
    .param p1, "interpolator"    # Landroid/view/animation/Interpolator;

    .prologue
    .line 164
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    invoke-virtual {v0, p1}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 165
    return-void
.end method

.method public setOnFlipListener(Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    .prologue
    .line 221
    iput-object p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mListener:Lcom/zuimeia/ui/flipimageview/FlipImageView$OnFlipListener;

    .line 222
    return-void
.end method

.method public setRotationReversed(Z)V
    .registers 2
    .param p1, "rotationReversed"    # Z

    .prologue
    .line 184
    iput-boolean p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationReversed:Z

    .line 185
    return-void
.end method

.method public setRotationXEnabled(Z)V
    .registers 2
    .param p1, "enabled"    # Z

    .prologue
    .line 140
    iput-boolean p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationXEnabled:Z

    .line 141
    return-void
.end method

.method public setRotationYEnabled(Z)V
    .registers 2
    .param p1, "enabled"    # Z

    .prologue
    .line 148
    iput-boolean p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationYEnabled:Z

    .line 149
    return-void
.end method

.method public setRotationZEnabled(Z)V
    .registers 2
    .param p1, "enabled"    # Z

    .prologue
    .line 156
    iput-boolean p1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsRotationZEnabled:Z

    .line 157
    return-void
.end method

.method public setVisiable()V
    .registers 2

    .prologue
    .line 239
    invoke-virtual {p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->clearAnimation()V

    .line 240
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setVisibility(I)V

    .line 241
    return-void
.end method

.method public toggleFlip()V
    .registers 2

    .prologue
    .line 206
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsDefaultAnimated:Z

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->toggleFlip(Z)V

    .line 207
    return-void
.end method

.method public toggleFlip(Z)V
    .registers 4
    .param p1, "animated"    # Z

    .prologue
    .line 210
    invoke-virtual {p0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setVisiable()V

    .line 211
    if-eqz p1, :cond_20

    .line 212
    iget-object v1, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eqz v0, :cond_1d

    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    :goto_d
    invoke-virtual {v1, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;->setToDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 213
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mAnimation:Lcom/zuimeia/ui/flipimageview/FlipImageView$FlipAnimator;

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 217
    :goto_15
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-nez v0, :cond_2d

    const/4 v0, 0x1

    :goto_1a
    iput-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    .line 218
    return-void

    .line 212
    :cond_1d
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    goto :goto_d

    .line 215
    :cond_20
    iget-boolean v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mIsFlipped:Z

    if-eqz v0, :cond_2a

    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mDrawable:Landroid/graphics/drawable/Drawable;

    :goto_26
    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/flipimageview/FlipImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_15

    :cond_2a
    iget-object v0, p0, Lcom/zuimeia/ui/flipimageview/FlipImageView;->mFlippedDrawable:Landroid/graphics/drawable/Drawable;

    goto :goto_26

    .line 217
    :cond_2d
    const/4 v0, 0x0

    goto :goto_1a
.end method
